<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{$L.CREATE_EVENT} - {$L.EVENT_STEP2}</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/seed-min.js"></script>
<script src="/assets/kxdr/steps.js"></script>
<script src="/assets/shopmanage/global_menu_jquery.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">{$L.APP_HOME} >> {$L.APP_NAME} >> {$L.APP_ADD_EVENT}</h3>
		<div class="button-group pull-right">
		  {include file='../../../PublicView/global_menu.html'}
		</div>
		</div>
	  </div>
	  </div>
	  </div>
	  </div>
 <div class="doc-content">
    <div class="panel">
      <div class="panel-header">
        <h3>{$L.CREATE_EVENT}</h3>
      </div>
      <div class="panel-body">
	  {if $edit!="players"}
	  <div class="flow-steps" style="margin:0 auto;width:948px">
		  <ol class="num4">
			<li class="first current-prev">1.{$L.EVENT_STEP1}</li>
			<li class="current">2.{$L.EVENT_STEP2}</li>
			<li class="">3.{$L.EVENT_STEP3}</li>
			<li class="last">4.{$L.EVENT_STEP4}</li>
		  </ol>
		</div>
	  {/if}
		<div class="row show-grid">
	  <div class="span8 offset1">
		<div class="panel">
		  <div class="panel-header clearfix">
			<h3 class="pull-left">{$L.EVENT_STEP2_PICK_PLAYER}</h3>
			<div id="tbar" class="pull-right"></div>
		  </div>
		  <input type="hidden" value="{$game_category}" class="game_category" />
		  <input type="hidden" value="{$privat_league_id}" class="privat_league_id" />
		  <input type="hidden" value="{$league_id}" class="league_id" />
		  <input type="hidden" value="{$league_name}" class="league_name" />
		  <input type="hidden" value="{$team_type}" class="team_type" />
		  <input type="hidden" value="step2" class="step" />
		  <div class="panel-body js-load" data-gameid="{$game_id}" data-tp="player"  data-url="/?m=Kxdr&c=Gameset&a=loadplayers&game_id={$game_id}" data-rtitle="{$L.EVENT_STEP2_ALLPLAYERS}" id= "t1">
		  </div>
		</div>
	  </div>
	  <div class="span15">
		  <div class="breadcrumb clearfix">
			<li class="active span14"> {$start|date_format:'%m月%d日'}{$L.EVENT_STEP2_TIP_START} - {$descrip}</li>
			<li class="active span7" style="line-height:30px"> 
				<span class="pull-left">可选“是”的数量：</span>
				<select name="" class="js-multi multi-yes span3" data-tp="yes">
                  <option value="0" {if $multi_yes==0}selected="selected"{/if}>多选</option>
                  <option value="1" {if $multi_yes==1}selected="selected"{/if}>单选</option>
                  <option value="2" {if $multi_yes>1}selected="selected"{/if}>指定选择数量</option>
				</select>
				<input type="text" name="multi-num-yes" value="{$multi_no|default:"0"}" {if $multi_yes<=1}style="display:none"{/if} class=" span1 multi-num-yes" />
			</li>
			<li class="active span7" style="line-height:30px"> 
				<span class="pull-left">可选“否”的数量：</span>
				<select name="" class="js-multi multi-no span3" data-tp="no">
                  <option value="0" {if $multi_no==0}selected="selected"{/if}>多选</option>
                  <option value="1" {if $multi_no==1}selected="selected"{/if}>单选</option>
                  <option value="2" {if $multi_no>1}selected="selected"{/if} >指定选择数量</option>
				</select>
				<input type="text" name="multi-num-no" value="{$multi_no|default:"0"}" {if $multi_no<=1}style="display:none"{/if} class=" span1 multi-num-no" />
			</li>
		  </div>
		  <div class="controls js-player-list">
		  {if $players}
			  {foreach from=$players item=item}
				<div class="well well-small button-tabs player{$item.epid}"><h4 class="span13">[{$item.player_name}]&nbsp;[{$item.title}]&nbsp;[{$item.think_type}]&nbsp;[{$item.think_type_way_name}]&nbsp;{if $item.event_player_descrip}[{$item.event_player_descrip|default:"暂无参赛介绍"}]{/if}&nbsp;</h4><button class="button button-mini button-warning js-delplayer pull-right"  data-id="{$item.epid}">删除</button></div>
			  {/foreach}
		  {else}
				<div class="well well-small button-tabs js-noplayer" id="l3">
					  {$L.EVENT_STEP2_PLAYER_TIP1}
				</div>
		  {/if}
		  </div>
		<div id="addplayer" class="hide" >
		<form id="J_Form" class="form-horizontal">
		<div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP2_EVENT_NAME}：</label>
            <div class="controls">
              <input name="player_title" type="text" value="{$player_title|default:""}" data-rules="{ldelim}required:true{rdelim}" data-messages="{ldelim}required:'{$L.EVENT_STEP2_EVENT_NAME_TIP1}'{rdelim}" class="input-large control-text player_title"  data-tip="{ldelim}text:'{$L.EVENT_STEP2_EVENT_NAME_TIP2}'{rdelim}">
			  <span class="label label-success float-right js-title-ex" style="cursor:pointer">{$L.EVENT_STEP2_EXAMPLE}</span>
            </div>
          </div>
        </div>
		<div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.PLAYER}：</label>
            <div class="controls">
			  <input name="player_id" type="hidden" data-rules="{ldelim}required:true{rdelim}" data-messages="{ldelim}required:'{$L.EVENT_STEP2_PLAYER_TIP1}'{rdelim}" value="{$player_id|default:""}" class="js-playerid" />
              <input name="player" type="text" value="{$player|default:""}" data-rules="{ldelim}required:true{rdelim}" data-messages="{ldelim}required:'{$L.EVENT_STEP2_PLAYER_TIP1}'{rdelim}" class="input-large control-text js-dwdy" readonly="readonly" data-tip="{ldelim}text:'{$L.EVENT_STEP2_PLAYER_TIP1}'{rdelim}">
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP2_GUESS}：</label>
            <div class="controls">
              <div id="s2">
				  <input type="hidden" class="js-cffsval" value="{$cffs|default:""}"  data-rules="{ldelim}required:true{rdelim}" data-messages="{ldelim}required:'{$L.EVENT_STEP2_EVENT_NAME_TIP3}'{rdelim}"  name="cffs">
				  <input name="savecffs" type="text" class="input-small control-text js-cffs"   data-rules="{ldelim}required:true{rdelim}" data-messages="{ldelim}required:'{$L.EVENT_STEP2_EVENT_NAME_TIP3}'{rdelim}"   style="display:none" value="{$cffs|default:""}">
			  </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP2_GUESS_WAY}：</label>
            <div class="controls">
			  <div id="s7">
				  <input type="hidden" class="js-zmcval" value="{$zmc|default:""}" name="zmc">
				  <input type="hidden" class="js-zmctext">
				  <input type="text" class="input-small control-text js-zmc" style="display:none" value="{$zmc|default:""}">
			  </div>
			  </div>
          </div>
        </div>
        <div class="row js-target_data hide">
          <div class="control-group span15">
            <label class="control-label">预设数据：</label>
            <div class="controls">
				  <input type="text" class="input-small control-text target_data" value="{$target_data|default:""}">
				  <span class="label label-success float-right js-title-td" style="cursor:pointer">?</span>
			  </div>
			 <div class="controls">
                <input type="radio" name="target_data_sign" value="0" checked="checked" class="target_data_sign bui-form-field-radio bui-form-check-field bui-form-field" aria-disabled="false" aria-pressed="false"> 正向预测
                <input type="radio" name="target_data_sign" value="2" class="target_data_sign bui-form-field-radio bui-form-check-field bui-form-field" aria-disabled="false"> 负向预测
             </div>
			 <div class="controls">
                <label class="checkbox">
                  <input type="checkbox" value="1" checked="checked" class="very_value bui-form-field-checkbox bui-form-check-field bui-form-field" aria-disabled="false">是否包含当前值
                </label>
			  </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP2_PLAYER_DESCRIP}：</label>
            <div class="controls control-row4">
              <textarea data-tip="{ldelim}text:'{$L.EVENT_STEP2_PLAYER_DESCRIP_TIP}'{rdelim}" name="descrip" data-rules="{ldelim}maxlength:250{rdelim}" class="input-large player_descrip" type="text">{$player_descrip|default:""}</textarea>
            </div>
          </div>
        </div>
		</form>
		</div>
		<input class="eid" value="{$event_id}" type="hidden"/>
        <div class="row form-actions actions-bar" style="margin-left:0">
            <div class="span13 offset5 ">
			{if $edit=="players"}
				<button data-url="/?m=Kxdr&c=Index" type="button" class="button button-primary js-save">完成</button>
				<a href="/?m=kxdr&c=Edit&a=step3&eid={$event_id}" >设置奖品</a>
			{else}
              <button data-url="/?m=Kxdr&c=Index&a=step3" type="button" class="button button-primary js-save">{$L.EVENT_NEXT_STEP}</button>
              <a href="/?m=Kxdr&c=Index&a=step1&edit=1">{$L.EVENT_PREV_STEP}</a>
			{/if}
            </div>
        </div>
	  </div>
</div>
</div>
</div>
</div>
</body>
</html>